/**
 * Created by hxsd on 2016/7/7.
 */

angular.module("mainApp",["ionic"]).controller("mainCtrl",function($scope){});

angular.module("mainApp").config(function($stateProvider,$urlRouterProvider){
    $stateProvider.state("tour",{
        url:"/tour",
        templateUrl:"views/tour/tour.html"
    }).state("tabs",{
        url:"/tabs",
        abstract:true,
        templateUrl:"views/tabs/tabs.html"
    }).state("tabs.recommend",{
        url:"/recommend",
        views:{"tabs-recommend":{templateUrl:"views/recommend/recommend.html",controller:"recommendCtrl"}}
    }).state("tabs.beautifulPic",{
        url:"/beautifulPic",
        views:{"tabs-beautifulPic":{templateUrl:"views/beautifulPic/beautifulPic.html",controller:"picCtrl"}}
    }).state("tabs.beautifulMusic",{
        url:"/beautifulMusic",
        views:{"tabs-beautifulMusic":{templateUrl:"views/beautifulMusic/beautifulMusic.html",controller:"beautifulMusicCtrl"}}
    }).state("tabs.myself",{
        url:"/myself",
        views:{"tabs-myself":{templateUrl:"views/myself/myself.html",controller:"myselfCtrl"}}
    });
    $urlRouterProvider.otherwise("/tabs/recommend")
});